@inject OrchardCore.Settings.ISiteService SiteService
@{
        var site = await SiteService.GetSiteSettingsAsync();
}
<!DOCTYPE html>
<html lang="en">
<head>
    <title>@RenderTitleSegments(site.SiteName, "before")</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <link type="image/x-icon" rel="shortcut icon" href="/TheAdmin/favicon.ico" />

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="/TheAdmin/Styles/TheAdmin.css">

    <script asp-name="font-awesome" use-cdn="true" at="Foot" version="5"></script>
    <script asp-name="font-awesome-v4-shims" use-cdn="true" at="Foot" version="5"></script>
    <script asp-name="admin" asp-src="/TheAdmin/Scripts/TheAdmin.js" depends-on="jQuery, jQuery-ui" at="Foot"></script>

    <resources type="Header" />

    <!-- This script can't wait to the footer -->
    <script type="text/javascript" src="/TheAdmin/Scripts/userPreferencesLoader.js"></script>

    @await RenderSectionAsync("Header", required: false)
</head>
<body class="preload">
    <div class="ta-wrapper">
        <div class="ta-navbar-top">
            <a class="ta-navbar-brand" href="@Url.Content("~/")"><span>@site.SiteName</span></a>
            <div class="collapse navbar-collapse" id="navbar-links">
                <div class="mr-auto">
                    @await RenderSectionAsync("NavbarTop", required: false)
                </div>
                <ul class="nav navbar-nav">
                    <li class="nav-item">
                        <a class="nav-link"><i class="fa fa-user" aria-hidden="true"></i> @User.Identity.Name</a>
                    </li>
                </ul>
                <form asp-route-area="OrchardCore.Users" asp-controller="Account" asp-action="LogOff" method="post" class="form-inline">
                    <button type="submit" class="btn btn-link nav-link" role="button"><i class="fa fa-sign-out" aria-hidden="true"></i> @T["Log off"]</button>
                </form>
            </div>
        </div>

        <div id="ta-left-sidebar">
            <button class="leftbar-compactor" type="button"><span> <i class="fas fa-bars" aria-hidden="false"></i> </span></button>
            @await RenderSectionAsync("Navigation", required: false)            
        </div>

        <div class="ta-content">
            @await RenderSectionAsync("Messages", required: false)

            @await RenderBodyAsync()
        </div>
    </div><!-- /.ta-wrapper -->

    @await RenderSectionAsync("Footer", required: false)

    <div id="confirmRemoveMessage" data-value="@T["Are you sure you want to remove this element?"]"></div>

    <resources type="Footer" />    
</body>
</html>